<?php
从php5.5开始,foreach as lsit($A+$B) 形式
/**
 * @var foreach 支持list
 */
$array = [
    [1, 2],
    [3, 4],
];
foreach ($array as list($a, $b)) {
    echo "A: $a; B: $b\n";
}